package com.lj.mcore.service;

import com.lj.mcore.dao.base.BaseAppDAO;
import com.lj.mcore.entity.StoreCart;
import jakarta.annotation.Resource;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;
import java.util.Map;

@Service
@Transactional
public class StoreCartService implements IStoreCartService {

    @Resource(name="storeCartDao")
    private BaseAppDAO<StoreCart> storeCartDao;

    @Override
    public boolean save(StoreCart obj) {
        return storeCartDao.save(obj);
    }

    @Override
    public boolean delete(Long id) {
        return false;
    }

    @Override
    public boolean update(StoreCart obj) {
        return storeCartDao.update(obj);
    }

    @Override
    public StoreCart getObjById(Long id) {
        return storeCartDao.findById(id);
    }

    @Override
    public List<StoreCart> query(String paramString, Map paramMap, int paramInt1, int paramInt2) {
        return storeCartDao.query(paramString, paramMap, paramInt1, paramInt2);
    }

}
